<script type="text/html" data-help-name="特殊烧录事件">
    <p>烧录相关的特殊事件节点</p>
  </script>
  
  
  <script type="text/html" data-template-name="特殊烧录事件">
    <!-- Name -->
    <div class="form-row">
      <label for="node-input-name"><i class="fa fa-tag"></i> 名称</label>
      <input type="text" id="node-input-name" data-i18n="[placeholder]name">
    </div>
  

      <div class="form-row" id="node-setIOin-state1">
        <label for="node-input-SpecialEvents">&nbsp;特殊事件</label>
        <select id="node-input-SpecialEvents" style="width: 250px;">
          <option value="esp32c3_shakeHands" selected>esp32c3-白片烧录</option>
          <option value="esp32c6_shakeHands" selected>esp32c6-白片烧录</option>
          <option value="esp32s3_shakeHands" selected>esp32s3-白片烧录</option>
          <option value="tbd">待定</option>
        </select>
      </div>

      <div class="form-row" id="node-set-state1">
        <label for="node-input-action">&nbsp;设备行为</label>
        <select id="node-input-action" style="width: 250px;">
          <option value="add">检测-设备插入</option>
          <option value="remove">检测-设备拔出</option>
          <option value="both" selected>检测-插入与拔出</option>
        </select>
      </div>


  
  </script>
  
  
  
  <script type="text/javascript">
      RED.nodes.registerType('特殊烧录事件',{
        category: 'Block 烧录事件',
        color: '#35c1f4',
        defaults: {
          name: {value:""},

          action:  {value:"add"},
          devName:  {value:""},
          SpecialEvents:  {value:"esp32c6_shakeHands"},

          oldrc: {value:false}
        },
        inputs:0,
        outputs:1,
        icon: "cog.svg",
        label: function() {
          return this.name||this._("特殊烧录事件节点");
        },
  
      });
    </script>
    
  